
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGProgramChunk.h>
#include <OpenSG/OSGProgramChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ProgramChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ProgramChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ProgramChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_ProgramChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_ProgramChunk()
{
    scope* osg_ProgramChunkBase_scope = new scope(
    class_< osg::ProgramChunkBase, bases< osg::StateChunk > , boost::noncopyable >("ProgramChunkBase", no_init)
//        .def_readonly("ProgramFieldMask", &osg::ProgramChunkBase::ProgramFieldMask)
//        .def_readonly("ParamValuesFieldMask", &osg::ProgramChunkBase::ParamValuesFieldMask)
//        .def_readonly("ParamNamesFieldMask", &osg::ProgramChunkBase::ParamNamesFieldMask)
//        .def_readonly("GLIdFieldMask", &osg::ProgramChunkBase::GLIdFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::ProgramChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::ProgramChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::ProgramChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::ProgramChunkBase::*)() )&osg::ProgramChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::ProgramChunkBase::*)() const)&osg::ProgramChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::ProgramChunkBase::getContainerSize)
        //.def("getProgram", (std::string& (osg::ProgramChunkBase::*)() )&osg::ProgramChunkBase::getProgram, return_value_policy< copy_const_reference >())
        .def("getProgram", (const std::string& (osg::ProgramChunkBase::*)() const)&osg::ProgramChunkBase::getProgram, return_value_policy< copy_const_reference >())
        .def("getParamValues", (osg::Vec4f& (osg::ProgramChunkBase::*)(const osg::UInt32) )&osg::ProgramChunkBase::getParamValues, return_value_policy< copy_non_const_reference >())
        //.def("getParamValues", (osg::MFVec4f& (osg::ProgramChunkBase::*)() )&osg::ProgramChunkBase::getParamValues, return_value_policy< copy_const_reference >())
        .def("getParamValues", (const osg::MFVec4f& (osg::ProgramChunkBase::*)() const)&osg::ProgramChunkBase::getParamValues, return_value_policy< copy_const_reference >())
        .def("getParamNames", (std::string& (osg::ProgramChunkBase::*)(const osg::UInt32) )&osg::ProgramChunkBase::getParamNames, return_value_policy< copy_non_const_reference >())
        //.def("getParamNames", (osg::MFString& (osg::ProgramChunkBase::*)() )&osg::ProgramChunkBase::getParamNames, return_value_policy< copy_const_reference >())
        .def("getParamNames", (const osg::MFString& (osg::ProgramChunkBase::*)() const)&osg::ProgramChunkBase::getParamNames, return_value_policy< copy_const_reference >())
        .def("setProgram", &osg::ProgramChunkBase::setProgram)
        .def("getBinSize", &osg::ProgramChunkBase::getBinSize)
        .def("copyToBin", &osg::ProgramChunkBase::copyToBin)
        .def("copyFromBin", &osg::ProgramChunkBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::ProgramChunkBase::NextFieldId;
    scope().attr("ProgramFieldId") = (int)osg::ProgramChunkBase::ProgramFieldId;
    scope().attr("GLIdFieldId") = (int)osg::ProgramChunkBase::GLIdFieldId;
    scope().attr("ParamValuesFieldId") = (int)osg::ProgramChunkBase::ParamValuesFieldId;
    scope().attr("ParamNamesFieldId") = (int)osg::ProgramChunkBase::ParamNamesFieldId;

    delete osg_ProgramChunkBase_scope;

    class_< osg::ProgramChunk, bases< osg::ProgramChunkBase > , boost::noncopyable, osg::ProgramChunkRefPtr >("ProgramChunk", no_init)
        .def("getStaticClassId", &osg::ProgramChunk::getStaticClassId)
        .def("changed", &osg::ProgramChunk::changed)
        .def("dump", &osg::ProgramChunk::dump, osg_ProgramChunk_dump_overloads_0_2())
        .def("read", (bool (osg::ProgramChunk::*)(const char*) )&osg::ProgramChunk::read)
        .def("read", (bool (osg::ProgramChunk::*)(std::istream&) )&osg::ProgramChunk::read)
        .def("addParameter", (bool (osg::ProgramChunk::*)(const char*, osg::Int16) )&osg::ProgramChunk::addParameter)
        .def("addParameter", (bool (osg::ProgramChunk::*)(const char*, osg::Int16, const osg::Vec4f&) )&osg::ProgramChunk::addParameter)
        .def("getParameter", (const osg::Vec4f& (osg::ProgramChunk::*)(osg::Int16) )&osg::ProgramChunk::getParameter, return_value_policy< copy_const_reference >())
        .def("getParameter", (const osg::Vec4f& (osg::ProgramChunk::*)(const char*) )&osg::ProgramChunk::getParameter, return_value_policy< copy_const_reference >())
        .def("getParameter", (const osg::Vec4f& (osg::ProgramChunk::*)(const std::string&) )&osg::ProgramChunk::getParameter, return_value_policy< copy_const_reference >())
        .def("setParameter", (bool (osg::ProgramChunk::*)(osg::Int16, const osg::Vec4f&) )&osg::ProgramChunk::setParameter)
        .def("setParameter", (bool (osg::ProgramChunk::*)(const char*, const osg::Vec4f&) )&osg::ProgramChunk::setParameter)
        .def("setParameter", (bool (osg::ProgramChunk::*)(const std::string&, const osg::Vec4f&) )&osg::ProgramChunk::setParameter)
        .def("findParameter", (osg::Int16 (osg::ProgramChunk::*)(const char*) )&osg::ProgramChunk::findParameter)
        .def("findParameter", (osg::Int16 (osg::ProgramChunk::*)(const std::string&) )&osg::ProgramChunk::findParameter)
        .def("activate", &osg::ProgramChunk::activate, osg_ProgramChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::ProgramChunk::changeFrom, osg_ProgramChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::ProgramChunk::deactivate, osg_ProgramChunk_deactivate_overloads_1_2())
        .def("isTransparent", &osg::ProgramChunk::isTransparent)
        .def("switchCost", &osg::ProgramChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::ProgramChunkPtr>();
    implicitly_convertible<osg::ProgramChunkRefPtr, osg::ProgramChunkPtr>();
    implicitly_convertible<osg::ProgramChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::ProgramChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::ProgramChunkPtr>);
}

